import request from '@/utils/request'

export function del(id) {
  return request({
    url: '/admin/marketProduct/del/'+id,
    method: 'post',
  })
}

export function find(id) {
  return request({
    url: '/admin/marketProduct/find/'+id,
    method: 'get',
  })
}

//京东商品sku组合成单个商品
export function jdProductCompose(data) {
    return request({
      url: '/admin/marketProduct/jdProductCompose',
      method: 'post',
      data: data,
    })
  }

  //京东商品添加至系统商品库
export function jdProductShelf(data) {
  return request({
    url: '/admin/marketProduct/jdProductShelf',
    method: 'post',
    data: data,
  })
}

export function save(data) {
  return request({
    url: '/admin/marketProduct/save',
    method: 'post',
    data: data,
  })
}

export function list(params) {
  return request({
    url: '/admin/marketProduct/list',
    method: 'get',
    params: params,
  })
}

export function update(data) {
    return request({
      url: '/admin/marketProduct/update',
      method: 'post',
      data: data,
    })
  }


